<?php

class Application_Form_AdminLogin extends Zend_Form {

    public function init(){
            // Set the method for the display form to POST
        $this->setMethod('post');
 
        // Username element
        $this->addElement('text', 'email', array(
            'label'      => 'Your email address:',
            'required'   => true,
            'filters'    => array('StringTrim', 'StringToLower'),
            'validators' => array(
                'EmailAddress',
            	array('StringLength', false, array(0, 50)),
            )
        ));
        
        // Password element
        $this->addElement('password', 'password', array(
            'label' => 'Password:',
        	'filters'    => array('StringTrim'),
        	'validators' => array(
        		array('StringLength', false, array(0, 50)),
        	),
            'required' => true,
        ));
  
        // Add the submit button
        $this->addElement('submit', 'submit', array(
            'ignore'   => true,
            'label'    => 'Login',
        ));
    }
}

